<?php

namespace app\admin\validate\games;

use think\Validate;

class GameType extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'title' => 'require',
        'type' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'title.require' => '请填写游戏类别名称',
        'type.require' => '请选择游戏类型',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['title','type'],
        'edit' => ['title','type'],
    ];
    
}
